<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绘制大量重复图形</title>
    <style>
        canvas {
            background-image: linear-gradient(to right, transparent 90%,#ccc 0),
                linear-gradient(to bottom, transparent 90%, #ccc 0);
            background-size: 8px 8px, 8px 8px;
        }
    </style>
</head>
<body>
    <canvas width="600" height="600"></canvas>
</body>
</html>